home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2003-05-20 | 63.0 KB | 1,203 lines
<refentry id="libgimp-gimpwidgets" revision="19 Jan 2001"> <refmeta> <refentrytitle>gimpwidgets</refentrytitle> <manvolnum>3</manvolnum> <refmiscinfo>LIBGIMP Library</refmiscinfo> </refmeta> <refnamediv> <refname>gimpwidgets</refname><refpurpose>A collection of convenient widget constructors, standard callbacks and helper functions.</refpurpose> </refnamediv> <refsynopsisdiv><title>Synopsis</title> <synopsis> <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-option-menu-new">gimp_option_menu_new</link> (<link linkend="gboolean">gboolean</link> menu_only, ...); <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-option-menu-new2">gimp_option_menu_new2</link> (<link linkend="gboolean">gboolean</link> menu_only, <link linkend="GtkSignalFunc">GtkSignalFunc</link> menu_item_callback, <link linkend="gpointer">gpointer</link> data, <link linkend="gpointer">gpointer</link> initial, ...); void <link linkend="gimp-option-menu-set-history">gimp_option_menu_set_history</link> (<link linkend="GtkOptionMenu">GtkOptionMenu</link> *option_menu, <link linkend="gpointer">gpointer</link> user_data); <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-radio-group-new">gimp_radio_group_new</link> (<link linkend="gboolean">gboolean</link> in_frame, const <link linkend="gchar">gchar</link> *frame_title, ...); <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-radio-group-new2">gimp_radio_group_new2</link> (<link linkend="gboolean">gboolean</link> in_frame, const <link linkend="gchar">gchar</link> *frame_title, <link linkend="GtkSignalFunc">GtkSignalFunc</link> radio_button_callback, <link linkend="gpointer">gpointer</link> data, <link linkend="gpointer">gpointer</link> initial, ...); <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-spin-button-new">gimp_spin_button_new</link> (<link linkend="GtkObject">GtkObject</link> **adjustment, <link linkend="gfloat">gfloat</link> value, <link linkend="gfloat">gfloat</link> lower, <link linkend="gfloat">gfloat</link> upper, <link linkend="gfloat">gfloat</link> step_increment, <link linkend="gfloat">gfloat</link> page_increment, <link linkend="gfloat">gfloat</link> page_size, <link linkend="gfloat">gfloat</link> climb_rate, <link linkend="guint">guint</link> digits); <link linkend="GtkObject">GtkObject</link>* <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link> (<link linkend="GtkTable">GtkTable</link> *table, <link linkend="gint">gint</link> column, <link linkend="gint">gint</link> row, const <link linkend="gchar">gchar</link> *text, <link linkend="gint">gint</link> scale_usize, <link linkend="gint">gint</link> spinbutton_usize, <link linkend="gfloat">gfloat</link> value, <link linkend="gfloat">gfloat</link> lower, <link linkend="gfloat">gfloat</link> upper, <link linkend="gfloat">gfloat</link> step_increment, <link linkend="gfloat">gfloat</link> page_increment, <link linkend="guint">guint</link> digits, <link linkend="gboolean">gboolean</link> constrain, <link linkend="gfloat">gfloat</link> unconstrained_lower, <link linkend="gfloat">gfloat</link> unconstrained_upper, const <link linkend="gchar">gchar</link> *tooltip, const <link linkend="gchar">gchar</link> *help_data); #define <link linkend="GIMP-SCALE-ENTRY-LABEL-CAPS">GIMP_SCALE_ENTRY_LABEL</link> (adj) #define <link linkend="GIMP-SCALE-ENTRY-SCALE-CAPS">GIMP_SCALE_ENTRY_SCALE</link> (adj) #define <link linkend="GIMP-SCALE-ENTRY-SCALE-ADJ-CAPS">GIMP_SCALE_ENTRY_SCALE_ADJ</link> (adj) #define <link linkend="GIMP-SCALE-ENTRY-SPINBUTTON-CAPS">GIMP_SCALE_ENTRY_SPINBUTTON</link> (adj) #define <link linkend="GIMP-SCALE-ENTRY-SPINBUTTON-ADJ-CAPS">GIMP_SCALE_ENTRY_SPINBUTTON_ADJ</link> (adj) <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-random-seed-new">gimp_random_seed_new</link> (<link linkend="gint">gint</link> *seed, <link linkend="gint">gint</link> *use_time, <link linkend="gint">gint</link> time_true, <link linkend="gint">gint</link> time_false); #define <link linkend="GIMP-RANDOM-SEED-SPINBUTTON-CAPS">GIMP_RANDOM_SEED_SPINBUTTON</link> (hbox) #define <link linkend="GIMP-RANDOM-SEED-SPINBUTTON-ADJ-CAPS">GIMP_RANDOM_SEED_SPINBUTTON_ADJ</link> (hbox) #define <link linkend="GIMP-RANDOM-SEED-TOGGLEBUTTON-CAPS">GIMP_RANDOM_SEED_TOGGLEBUTTON</link> (hbox) <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-coordinates-new">gimp_coordinates_new</link> (<link linkend="GimpUnit">GimpUnit</link> unit, const <link linkend="gchar">gchar</link> *unit_format, <link linkend="gboolean">gboolean</link> menu_show_pixels, <link linkend="gboolean">gboolean</link> menu_show_percent, <link linkend="gint">gint</link> spinbutton_usize, <link linkend="GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</link> update_policy, <link linkend="gboolean">gboolean</link> chainbutton_active, <link linkend="gboolean">gboolean</link> chain_constrains_ratio, const <link linkend="gchar">gchar</link> *xlabel, <link linkend="gdouble">gdouble</link> x, <link linkend="gdouble">gdouble</link> xres, <link linkend="gdouble">gdouble</link> lower_boundary_x, <link linkend="gdouble">gdouble</link> upper_boundary_x, <link linkend="gdouble">gdouble</link> xsize_0, <link linkend="gdouble">gdouble</link> xsize_100, const <link linkend="gchar">gchar</link> *ylabel, <link linkend="gdouble">gdouble</link> y, <link linkend="gdouble">gdouble</link> yres, <link linkend="gdouble">gdouble</link> lower_boundary_y, <link linkend="gdouble">gdouble</link> upper_boundary_y, <link linkend="gdouble">gdouble</link> ysize_0, <link linkend="gdouble">gdouble</link> ysize_100); #define <link linkend="GIMP-COORDINATES-CHAINBUTTON-CAPS">GIMP_COORDINATES_CHAINBUTTON</link> (sizeentry) <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-mem-size-entry-new">gimp_mem_size_entry_new</link> (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment); #define <link linkend="GIMP-MEM-SIZE-ENTRY-SPINBUTTON-CAPS">GIMP_MEM_SIZE_ENTRY_SPINBUTTON</link> (memsize) #define <link linkend="GIMP-MEM-SIZE-ENTRY-SPINBUTTON-ADJ-CAPS">GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ</link>(memsize) #define <link linkend="GIMP-MEM-SIZE-ENTRY-OPTIONMENU-CAPS">GIMP_MEM_SIZE_ENTRY_OPTIONMENU</link> (memsize) <link linkend="GtkWidget">GtkWidget</link>* <link linkend="gimp-pixmap-button-new">gimp_pixmap_button_new</link> (<link linkend="gchar">gchar</link> **xpm_data, const <link linkend="gchar">gchar</link> *text); void <link linkend="gimp-toggle-button-sensitive-update">gimp_toggle_button_sensitive_update</link> (<link linkend="GtkToggleButton">GtkToggleButton</link> *toggle_button); void <link linkend="gimp-toggle-button-update">gimp_toggle_button_update</link> (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-radio-button-update">gimp_radio_button_update</link> (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-menu-item-update">gimp_menu_item_update</link> (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-int-adjustment-update">gimp_int_adjustment_update</link> (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-uint-adjustment-update">gimp_uint_adjustment_update</link> (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-float-adjustment-update">gimp_float_adjustment_update</link> (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-double-adjustment-update">gimp_double_adjustment_update</link> (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-unit-menu-update">gimp_unit_menu_update</link> (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data); void <link linkend="gimp-table-attach-aligned">gimp_table_attach_aligned</link> (<link linkend="GtkTable">GtkTable</link> *table, <link linkend="gint">gint</link> column, <link linkend="gint">gint</link> row, const <link linkend="gchar">gchar</link> *label_text, <link linkend="gfloat">gfloat</link> xalign, <link linkend="gfloat">gfloat</link> yalign, <link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gint">gint</link> colspan, <link linkend="gboolean">gboolean</link> left_align); </synopsis> </refsynopsisdiv> <refsect1> <title>Description</title> <para> </para> </refsect1> <refsect1> <title>Details</title> <refsect2> <title><anchor id="gimp-option-menu-new">gimp_option_menu_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_option_menu_new (<link linkend="gboolean">gboolean</link> menu_only, ...);</programlisting> <para> </para> <para> The <parameter>va_list</parameter> describing the <link linkend="GtkMenuItem">GtkMenuItem</link>'s has the following format: <informaltable pgwide=1 frame="none" role="struct"> <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*"> <tbody> <row> <entry><link linkend="gchar">gchar</link> *label,</entry> <entry>The menu item's label.</entry> </row> <row> <entry><link linkend="GtkSignalFunc">GtkSignalFunc</link> callback,</entry> <entry>The callback which will be connected to the menu item's "activate" signal</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> data,</entry> <entry>The callback data which will be used in <link linkend="gtk-signal-connect">gtk_signal_connect</link>().</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> user_data,</entry> <entry>The menu item's <parameter>user_data</parameter> which will be set with <link linkend="gtk-object-set-user-data">gtk_object_set_user_data</link>().</entry> </row> <row> <entry><link linkend="GtkWidget">GtkWidget</link> **widget_ptr,</entry> <entry>A pointer to store the created menu item in.</entry> </row> <row> <entry><link linkend="gboolean">gboolean</link> active,</entry> <entry><link linkend="TRUE-CAPS">TRUE</link> if this should be the initially selected menu item.</entry> </row> </tbody></tgroup></informaltable> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>menu_only</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the function should return a <link linkend="GtkMenu">GtkMenu</link> only. </entry></row> <row><entry align="right"><parameter>...</parameter> :</entry> <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> describing the menu items. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkOptionMenu">GtkOptionMenu</link> or a <link linkend="GtkMenu">GtkMenu</link> (depending on <parameter>menu_only</parameter>). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-option-menu-new2">gimp_option_menu_new2 ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_option_menu_new2 (<link linkend="gboolean">gboolean</link> menu_only, <link linkend="GtkSignalFunc">GtkSignalFunc</link> menu_item_callback, <link linkend="gpointer">gpointer</link> data, <link linkend="gpointer">gpointer</link> initial, ...);</programlisting> <para> </para> <para> The <parameter>va_list</parameter> describing the <link linkend="GtkMenuItem">GtkMenuItem</link>'s has the following format: <informaltable pgwide=1 frame="none" role="struct"> <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*"> <tbody> <row> <entry><link linkend="gchar">gchar</link> *label,</entry> <entry>The menu item's label.</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> user_data,</entry> <entry>The menu item's <parameter>user_data</parameter> which will be set with <link linkend="gtk-object-set-user-data">gtk_object_set_user_data</link>().</entry> </row> <row> <entry><link linkend="GtkWidget">GtkWidget</link> **widget_ptr,</entry> <entry>A pointer to store the created menu item in.</entry> </row> </tbody></tgroup></informaltable> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>menu_only</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the function should return a <link linkend="GtkMenu">GtkMenu</link> only. </entry></row> <row><entry align="right"><parameter>menu_item_callback</parameter> :</entry> <entry> The callback each menu item's "activate" signal will be connected with. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> The data which will be passed to <link linkend="gtk-signal-connect">gtk_signal_connect</link>(). </entry></row> <row><entry align="right"><parameter>initial</parameter> :</entry> <entry> The <parameter>user_data</parameter> of the initially selected menu item. </entry></row> <row><entry align="right"><parameter>...</parameter> :</entry> <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> describing the menu items. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkOptionMenu">GtkOptionMenu</link> or a <link linkend="GtkMenu">GtkMenu</link> (depending on <parameter>menu_only</parameter>). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-option-menu-set-history">gimp_option_menu_set_history ()</title> <programlisting>void gimp_option_menu_set_history (<link linkend="GtkOptionMenu">GtkOptionMenu</link> *option_menu, <link linkend="gpointer">gpointer</link> user_data);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>option_menu</parameter> :</entry> <entry> A <link linkend="GtkOptionMenu">GtkOptionMenu</link> as returned by <link linkend="gimp-option-menu-new">gimp_option_menu_new</link>() or <link linkend="gimp-option-menu-new2">gimp_option_menu_new2</link>(). </entry></row> <row><entry align="right"><parameter>user_data</parameter> :</entry> <entry> The <parameter>user_data</parameter> of the menu item you want to select. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-radio-group-new">gimp_radio_group_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_radio_group_new (<link linkend="gboolean">gboolean</link> in_frame, const <link linkend="gchar">gchar</link> *frame_title, ...);</programlisting> <para> </para> <para> The <parameter>va_list</parameter> describing the <link linkend="GtkRadioButton">GtkRadioButton</link>'s has the following format: <informaltable pgwide=1 frame="none" role="struct"> <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*"> <tbody> <row> <entry><link linkend="gchar">gchar</link> *label,</entry> <entry>The radio button's label.</entry> </row> <row> <entry><link linkend="GtkSignalFunc">GtkSignalFunc</link> callback,</entry> <entry>The callback which will be connected to the radio button's "toggled" signal</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> data,</entry> <entry>The callback data which will be used in <link linkend="gtk-signal-connect">gtk_signal_connect</link>().</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> user_data,</entry> <entry>The radio button's <parameter>user_data</parameter> which will be set with <link linkend="gtk-object-set-user-data">gtk_object_set_user_data</link>().</entry> </row> <row> <entry><link linkend="GtkWidget">GtkWidget</link> **widget_ptr,</entry> <entry>A pointer to store the created radio button in.</entry> </row> <row> <entry><link linkend="gboolean">gboolean</link> active,</entry> <entry><link linkend="TRUE-CAPS">TRUE</link> if this should be the initially pressed radio button.</entry> </row> </tbody></tgroup></informaltable> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>in_frame</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if you want a <link linkend="GtkFrame">GtkFrame</link> around the radio button group. </entry></row> <row><entry align="right"><parameter>frame_title</parameter> :</entry> <entry> The title of the Frame or <link linkend="NULL-CAPS">NULL</link> if you don't want a title. </entry></row> <row><entry align="right"><parameter>...</parameter> :</entry> <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> describing the radio buttons. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkFrame">GtkFrame</link> or <link linkend="GtkVbox">GtkVbox</link> (depending on <parameter>in_frame</parameter>). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-radio-group-new2">gimp_radio_group_new2 ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_radio_group_new2 (<link linkend="gboolean">gboolean</link> in_frame, const <link linkend="gchar">gchar</link> *frame_title, <link linkend="GtkSignalFunc">GtkSignalFunc</link> radio_button_callback, <link linkend="gpointer">gpointer</link> data, <link linkend="gpointer">gpointer</link> initial, ...);</programlisting> <para> </para> <para> The <parameter>va_list</parameter> describing the <link linkend="GtkRadioButton">GtkRadioButton</link>'s has the following format: <informaltable pgwide=1 frame="none" role="struct"> <tgroup cols="2"><colspec colwidth="4*"><colspec colwidth="8*"> <tbody> <row> <entry><link linkend="gchar">gchar</link> *label,</entry> <entry>The radio button's label.</entry> </row> <row> <entry><link linkend="gpointer">gpointer</link> user_data,</entry> <entry>The radio button's <parameter>user_data</parameter> which will be set with <link linkend="gtk-object-set-user-data">gtk_object_set_user_data</link>().</entry> </row> <row> <entry><link linkend="GtkWidget">GtkWidget</link> **widget_ptr,</entry> <entry>A pointer to store the created radio button in.</entry> </row> </tbody></tgroup></informaltable> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>in_frame</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if you want a <link linkend="GtkFrame">GtkFrame</link> around the radio button group. </entry></row> <row><entry align="right"><parameter>frame_title</parameter> :</entry> <entry> The title of the Frame or <link linkend="NULL-CAPS">NULL</link> if you don't want a title. </entry></row> <row><entry align="right"><parameter>radio_button_callback</parameter> :</entry> <entry> The callback each button's "toggled" signal will be connected with. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> The data which will be passed to <link linkend="gtk-signal-connect">gtk_signal_connect</link>(). </entry></row> <row><entry align="right"><parameter>initial</parameter> :</entry> <entry> The <parameter>user_data</parameter> of the initially pressed radio button. </entry></row> <row><entry align="right"><parameter>...</parameter> :</entry> <entry> A <link linkend="NULL-CAPS">NULL</link> terminated <parameter>va_list</parameter> describing the radio buttons. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkFrame">GtkFrame</link> or <link linkend="GtkVbox">GtkVbox</link> (depending on <parameter>in_frame</parameter>). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-spin-button-new">gimp_spin_button_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_spin_button_new (<link linkend="GtkObject">GtkObject</link> **adjustment, <link linkend="gfloat">gfloat</link> value, <link linkend="gfloat">gfloat</link> lower, <link linkend="gfloat">gfloat</link> upper, <link linkend="gfloat">gfloat</link> step_increment, <link linkend="gfloat">gfloat</link> page_increment, <link linkend="gfloat">gfloat</link> page_size, <link linkend="gfloat">gfloat</link> climb_rate, <link linkend="guint">guint</link> digits);</programlisting> <para> This function is a shortcut for <link linkend="gtk-adjustment-new">gtk_adjustment_new</link>() and a subsequent <link linkend="gtk-spin-button-new">gtk_spin_button_new</link>() and does some more initialisation stuff like setting a standard minimun horizontal size.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> Returns the spinbutton's <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> <row><entry align="right"><parameter>value</parameter> :</entry> <entry> The initial value of the spinbutton. </entry></row> <row><entry align="right"><parameter>lower</parameter> :</entry> <entry> The lower boundary. </entry></row> <row><entry align="right"><parameter>upper</parameter> :</entry> <entry> The uppper boundary. </entry></row> <row><entry align="right"><parameter>step_increment</parameter> :</entry> <entry> The spinbutton's step increment. </entry></row> <row><entry align="right"><parameter>page_increment</parameter> :</entry> <entry> The spinbutton's page increment (mouse button 2). </entry></row> <row><entry align="right"><parameter>page_size</parameter> :</entry> <entry> The spinbutton's page size. </entry></row> <row><entry align="right"><parameter>climb_rate</parameter> :</entry> <entry> The spinbutton's climb rate. </entry></row> <row><entry align="right"><parameter>digits</parameter> :</entry> <entry> The spinbutton's number of decimal digits. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkSpinbutton">GtkSpinbutton</link> and it's <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-scale-entry-new">gimp_scale_entry_new ()</title> <programlisting><link linkend="GtkObject">GtkObject</link>* gimp_scale_entry_new (<link linkend="GtkTable">GtkTable</link> *table, <link linkend="gint">gint</link> column, <link linkend="gint">gint</link> row, const <link linkend="gchar">gchar</link> *text, <link linkend="gint">gint</link> scale_usize, <link linkend="gint">gint</link> spinbutton_usize, <link linkend="gfloat">gfloat</link> value, <link linkend="gfloat">gfloat</link> lower, <link linkend="gfloat">gfloat</link> upper, <link linkend="gfloat">gfloat</link> step_increment, <link linkend="gfloat">gfloat</link> page_increment, <link linkend="guint">guint</link> digits, <link linkend="gboolean">gboolean</link> constrain, <link linkend="gfloat">gfloat</link> unconstrained_lower, <link linkend="gfloat">gfloat</link> unconstrained_upper, const <link linkend="gchar">gchar</link> *tooltip, const <link linkend="gchar">gchar</link> *help_data);</programlisting> <para> This function creates a <link linkend="GtkLabel">GtkLabel</link>, a <link linkend="GtkHScale">GtkHScale</link> and a <link linkend="GtkSpinButton">GtkSpinButton</link> and attaches them to a 3-column <link linkend="GtkTable">GtkTable</link>. </para> <para> Note that if you pass a <parameter>tooltip</parameter> or <parameter>help_data</parameter> to this function you'll have to initialize GIMP's help system with <link linkend="gimp-help-init">gimp_help_init</link>() before using it.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>table</parameter> :</entry> <entry> The <link linkend="GtkTable">GtkTable</link> the widgets will be attached to. </entry></row> <row><entry align="right"><parameter>column</parameter> :</entry> <entry> The column to start with. </entry></row> <row><entry align="right"><parameter>row</parameter> :</entry> <entry> The row to attach the widgets. </entry></row> <row><entry align="right"><parameter>text</parameter> :</entry> <entry> The text for the <link linkend="GtkLabel">GtkLabel</link> which will appear left of the <link linkend="GtkHScale">GtkHScale</link>. </entry></row> <row><entry align="right"><parameter>scale_usize</parameter> :</entry> <entry> The minimum horizontal size of the <link linkend="GtkHScale">GtkHScale</link>. </entry></row> <row><entry align="right"><parameter>spinbutton_usize</parameter> :</entry> <entry> The minimum horizontal size of the <link linkend="GtkSpinButton">GtkSpinButton</link>. </entry></row> <row><entry align="right"><parameter>value</parameter> :</entry> <entry> The initial value. </entry></row> <row><entry align="right"><parameter>lower</parameter> :</entry> <entry> The lower boundary. </entry></row> <row><entry align="right"><parameter>upper</parameter> :</entry> <entry> The upper boundary. </entry></row> <row><entry align="right"><parameter>step_increment</parameter> :</entry> <entry> The step increment. </entry></row> <row><entry align="right"><parameter>page_increment</parameter> :</entry> <entry> The page increment. </entry></row> <row><entry align="right"><parameter>digits</parameter> :</entry> <entry> The number of decimal digits. </entry></row> <row><entry align="right"><parameter>constrain</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the range of possible values of the <link linkend="GtkSpinButton">GtkSpinButton</link> should be the same as of the <link linkend="GtkHScale">GtkHScale</link>. </entry></row> <row><entry align="right"><parameter>unconstrained_lower</parameter> :</entry> <entry> The spinbutton's lower boundary if <parameter>constrain</parameter> == <link linkend="FALSE-CAPS">FALSE</link>. </entry></row> <row><entry align="right"><parameter>unconstrained_upper</parameter> :</entry> <entry> The spinbutton's upper boundary if <parameter>constrain</parameter> == <link linkend="FALSE-CAPS">FALSE</link>. </entry></row> <row><entry align="right"><parameter>tooltip</parameter> :</entry> <entry> A tooltip message for the scale and the spinbutton. </entry></row> <row><entry align="right"><parameter>help_data</parameter> :</entry> <entry> The widgets' help_data (see <link linkend="gimp-help-set-help-data">gimp_help_set_help_data</link>()). </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> The <link linkend="GtkSpinButton">GtkSpinButton</link>'s <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-SCALE-ENTRY-LABEL-CAPS">GIMP_SCALE_ENTRY_LABEL()</title> <programlisting>#define GIMP_SCALE_ENTRY_LABEL(adj)</programlisting> <para> Returns the scale_entry's <link linkend="GtkLabel">GtkLabel</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adj</parameter> :</entry> <entry>The <link linkend="GtkAdjustment">GtkAdjustment</link> returned by <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-SCALE-ENTRY-SCALE-CAPS">GIMP_SCALE_ENTRY_SCALE()</title> <programlisting>#define GIMP_SCALE_ENTRY_SCALE(adj)</programlisting> <para> Returns the scale_entry's <link linkend="GtkHScale">GtkHScale</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adj</parameter> :</entry> <entry>The <link linkend="GtkAdjustment">GtkAdjustment</link> returned by <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-SCALE-ENTRY-SCALE-ADJ-CAPS">GIMP_SCALE_ENTRY_SCALE_ADJ()</title> <programlisting>#define GIMP_SCALE_ENTRY_SCALE_ADJ(adj)</programlisting> <para> Returns the <link linkend="GtkAdjustment">GtkAdjustment</link> of the scale_entry's <link linkend="GtkHScale">GtkHScale</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adj</parameter> :</entry> <entry>The <link linkend="GtkAdjustment">GtkAdjustment</link> returned by <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-SCALE-ENTRY-SPINBUTTON-CAPS">GIMP_SCALE_ENTRY_SPINBUTTON()</title> <programlisting>#define GIMP_SCALE_ENTRY_SPINBUTTON(adj)</programlisting> <para> Returns the scale_entry's <link linkend="GtkSpinButton">GtkSpinButton</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adj</parameter> :</entry> <entry>The <link linkend="GtkAdjustment">GtkAdjustment</link> returned by <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-SCALE-ENTRY-SPINBUTTON-ADJ-CAPS">GIMP_SCALE_ENTRY_SPINBUTTON_ADJ()</title> <programlisting>#define GIMP_SCALE_ENTRY_SPINBUTTON_ADJ(adj)</programlisting> <para> Returns the <link linkend="GtkAdjustment">GtkAdjustment</link> of the scale_entry's <link linkend="GtkSpinButton">GtkSpinButton</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adj</parameter> :</entry> <entry>The <link linkend="GtkAdjustment">GtkAdjustment</link> returned by <link linkend="gimp-scale-entry-new">gimp_scale_entry_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-random-seed-new">gimp_random_seed_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_random_seed_new (<link linkend="gint">gint</link> *seed, <link linkend="gint">gint</link> *use_time, <link linkend="gint">gint</link> time_true, <link linkend="gint">gint</link> time_false);</programlisting> <para> Note that this widget automatically sets tooltips with <link linkend="gimp-help-set-help-data">gimp_help_set_help_data</link>(), so you'll have to initialize GIMP's help system with <link linkend="gimp-help-init">gimp_help_init</link>() before using it.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>seed</parameter> :</entry> <entry> A pointer to the variable which stores the random seed. </entry></row> <row><entry align="right"><parameter>use_time</parameter> :</entry> <entry> A pointer to the variable which stores the <parameter>use_time</parameter> toggle boolean. </entry></row> <row><entry align="right"><parameter>time_true</parameter> :</entry> <entry> The value to write to <parameter>use_time</parameter> if the toggle button is checked. </entry></row> <row><entry align="right"><parameter>time_false</parameter> :</entry> <entry> The value to write to <parameter>use_time</parameter> if the toggle button is unchecked. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkHBox">GtkHBox</link> containing a <link linkend="GtkSpinButton">GtkSpinButton</link> for the random seed and a <link linkend="GtkToggleButton">GtkToggleButton</link> for toggling the <parameter>use_time</parameter> behaviour. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-RANDOM-SEED-SPINBUTTON-CAPS">GIMP_RANDOM_SEED_SPINBUTTON()</title> <programlisting>#define GIMP_RANDOM_SEED_SPINBUTTON(hbox)</programlisting> <para> Returns the random_seed's <link linkend="GtkSpinButton">GtkSpinButton</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>hbox</parameter> :</entry> <entry>The <link linkend="GtkHBox">GtkHBox</link> returned by <link linkend="gimp-random-seed-new">gimp_random_seed_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-RANDOM-SEED-SPINBUTTON-ADJ-CAPS">GIMP_RANDOM_SEED_SPINBUTTON_ADJ()</title> <programlisting>#define GIMP_RANDOM_SEED_SPINBUTTON_ADJ(hbox)</programlisting> <para> Returns the <link linkend="GtkAdjustment">GtkAdjustment</link> of the random_seed's <link linkend="GtkSpinButton">GtkSpinButton</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>hbox</parameter> :</entry> <entry>The <link linkend="GtkHBox">GtkHBox</link> returned by <link linkend="gimp-random-seed-new">gimp_random_seed_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-RANDOM-SEED-TOGGLEBUTTON-CAPS">GIMP_RANDOM_SEED_TOGGLEBUTTON()</title> <programlisting>#define GIMP_RANDOM_SEED_TOGGLEBUTTON(hbox)</programlisting> <para> Returns the random_seed's <link linkend="GtkToggleButton">GtkToggleButton</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>hbox</parameter> :</entry> <entry>The <link linkend="GtkHBox">GtkHBox</link> returned by <link linkend="gimp-random-seed-new">gimp_random_seed_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-coordinates-new">gimp_coordinates_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_coordinates_new (<link linkend="GimpUnit">GimpUnit</link> unit, const <link linkend="gchar">gchar</link> *unit_format, <link linkend="gboolean">gboolean</link> menu_show_pixels, <link linkend="gboolean">gboolean</link> menu_show_percent, <link linkend="gint">gint</link> spinbutton_usize, <link linkend="GimpSizeEntryUpdatePolicy">GimpSizeEntryUpdatePolicy</link> update_policy, <link linkend="gboolean">gboolean</link> chainbutton_active, <link linkend="gboolean">gboolean</link> chain_constrains_ratio, const <link linkend="gchar">gchar</link> *xlabel, <link linkend="gdouble">gdouble</link> x, <link linkend="gdouble">gdouble</link> xres, <link linkend="gdouble">gdouble</link> lower_boundary_x, <link linkend="gdouble">gdouble</link> upper_boundary_x, <link linkend="gdouble">gdouble</link> xsize_0, <link linkend="gdouble">gdouble</link> xsize_100, const <link linkend="gchar">gchar</link> *ylabel, <link linkend="gdouble">gdouble</link> y, <link linkend="gdouble">gdouble</link> yres, <link linkend="gdouble">gdouble</link> lower_boundary_y, <link linkend="gdouble">gdouble</link> upper_boundary_y, <link linkend="gdouble">gdouble</link> ysize_0, <link linkend="gdouble">gdouble</link> ysize_100);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>unit</parameter> :</entry> <entry> The initial unit of the <link linkend="GimpUnitMenu">GimpUnitMenu</link>. </entry></row> <row><entry align="right"><parameter>unit_format</parameter> :</entry> <entry> The unit format string as passed to <link linkend="gimp-size-entry-new">gimp_size_entry_new</link>(). </entry></row> <row><entry align="right"><parameter>menu_show_pixels</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the <link linkend="GimpUnitMenu">GimpUnitMenu</link> should contain an item for GIMP_UNIT_PIXEL. </entry></row> <row><entry align="right"><parameter>menu_show_percent</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the <link linkend="GimpUnitMenu">GimpUnitMenu</link> should contain an item for GIMP_UNIT_PERCENT. </entry></row> <row><entry align="right"><parameter>spinbutton_usize</parameter> :</entry> <entry> The horizontal usize of the <link linkend="GimpSizeEntry">GimpSizeEntry</link>'s <link linkend="GtkSpinButton">GtkSpinButton</link>'s. </entry></row> <row><entry align="right"><parameter>update_policy</parameter> :</entry> <entry> The update policy for the <link linkend="GimpSizeEntry">GimpSizeEntry</link>. </entry></row> <row><entry align="right"><parameter>chainbutton_active</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the attached <link linkend="GimpChainButton">GimpChainButton</link> should be active. </entry></row> <row><entry align="right"><parameter>chain_constrains_ratio</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the chainbutton should constrain the fields' aspect ratio. If <link linkend="FALSE-CAPS">FALSE</link>, the values will be constrained. </entry></row> <row><entry align="right"><parameter>xlabel</parameter> :</entry> <entry> The label for the X coordinate. </entry></row> <row><entry align="right"><parameter>x</parameter> :</entry> <entry> The initial value of the X coordinate. </entry></row> <row><entry align="right"><parameter>xres</parameter> :</entry> <entry> The horizontal resolution in DPI. </entry></row> <row><entry align="right"><parameter>lower_boundary_x</parameter> :</entry> <entry> The lower boundary of the X coordinate. </entry></row> <row><entry align="right"><parameter>upper_boundary_x</parameter> :</entry> <entry> The upper boundary of the X coordinate. </entry></row> <row><entry align="right"><parameter>xsize_0</parameter> :</entry> <entry> The X value which will be treated as 0%. </entry></row> <row><entry align="right"><parameter>xsize_100</parameter> :</entry> <entry> The X value which will be treated as 100%. </entry></row> <row><entry align="right"><parameter>ylabel</parameter> :</entry> <entry> The label for the Y coordinate. </entry></row> <row><entry align="right"><parameter>y</parameter> :</entry> <entry> The initial value of the Y coordinate. </entry></row> <row><entry align="right"><parameter>yres</parameter> :</entry> <entry> The vertical resolution in DPI. </entry></row> <row><entry align="right"><parameter>lower_boundary_y</parameter> :</entry> <entry> The lower boundary of the Y coordinate. </entry></row> <row><entry align="right"><parameter>upper_boundary_y</parameter> :</entry> <entry> The upper boundary of the Y coordinate. </entry></row> <row><entry align="right"><parameter>ysize_0</parameter> :</entry> <entry> The Y value which will be treated as 0%. </entry></row> <row><entry align="right"><parameter>ysize_100</parameter> :</entry> <entry> The Y value which will be treated as 100%. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GimpSizeEntry">GimpSizeEntry</link> with two fields for x/y coordinates/sizes with a <link linkend="GimpChainButton">GimpChainButton</link> attached to constrain either the two fields' values or the ratio between them. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-COORDINATES-CHAINBUTTON-CAPS">GIMP_COORDINATES_CHAINBUTTON()</title> <programlisting>#define GIMP_COORDINATES_CHAINBUTTON(sizeentry)</programlisting> <para> Returns the <link linkend="GimpChainButton">GimpChainButton</link> which is attached to the <link linkend="GimpSizeEntry">GimpSizeEntry</link>. </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>sizeentry</parameter> :</entry> <entry>The <link linkend="GimpSizeEntry">GimpSizeEntry</link> returned by <link linkend="gimp-coordinates-new">gimp_coordinates_new</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-mem-size-entry-new">gimp_mem_size_entry_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_mem_size_entry_new (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> The adjustment containing the memsize and it's limits. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkHBox">GtkHBox</link> with a <link linkend="GtkSpinButton">GtkSpinButton</link> and a <link linkend="GtkOptionMenu">GtkOptionMenu</link>. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-MEM-SIZE-ENTRY-SPINBUTTON-CAPS">GIMP_MEM_SIZE_ENTRY_SPINBUTTON()</title> <programlisting>#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON(memsize)</programlisting> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>memsize</parameter> :</entry> <entry> </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-MEM-SIZE-ENTRY-SPINBUTTON-ADJ-CAPS">GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ()</title> <programlisting>#define GIMP_MEM_SIZE_ENTRY_SPINBUTTON_ADJ(memsize)</programlisting> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>memsize</parameter> :</entry> <entry> </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="GIMP-MEM-SIZE-ENTRY-OPTIONMENU-CAPS">GIMP_MEM_SIZE_ENTRY_OPTIONMENU()</title> <programlisting>#define GIMP_MEM_SIZE_ENTRY_OPTIONMENU(memsize)</programlisting> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>memsize</parameter> :</entry> <entry> </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-pixmap-button-new">gimp_pixmap_button_new ()</title> <programlisting><link linkend="GtkWidget">GtkWidget</link>* gimp_pixmap_button_new (<link linkend="gchar">gchar</link> **xpm_data, const <link linkend="gchar">gchar</link> *text);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>xpm_data</parameter> :</entry> <entry> The XPM data which will be passed to <link linkend="gimp-pixmap-new">gimp_pixmap_new</link>(). </entry></row> <row><entry align="right"><parameter>text</parameter> :</entry> <entry> An optional text which will appear right of the pixmap. </entry></row> <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A <link linkend="GtkButton">GtkButton</link> with a <link linkend="GimpPixmap">GimpPixmap</link> and an optional <link linkend="GtkLabel">GtkLabel</link>. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-toggle-button-sensitive-update">gimp_toggle_button_sensitive_update ()</title> <programlisting>void gimp_toggle_button_sensitive_update (<link linkend="GtkToggleButton">GtkToggleButton</link> *toggle_button);</programlisting> <para> If you attached a pointer to a <link linkend="GtkWidget">GtkWidget</link> with <link linkend="gtk-object-set-data">gtk_object_set_data</link>() and the "set_sensitive" key to the <link linkend="GtkToggleButton">GtkToggleButton</link>, the sensitive state of the attached widget will be set according to the toggle button's "active" state. </para> <para> You can attach an arbitrary list of widgets by attaching another "set_sensitive" data pointer to the first widget (and so on...). </para> <para> This function can also set the sensitive state according to the toggle button's inverse "active" state by attaching widgets with the "inverse_sensitive" key.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>toggle_button</parameter> :</entry> <entry> The <link linkend="GtkToggleButton">GtkToggleButton</link> the "set_sensitive" and "inverse_sensitive" lists are attached to. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-toggle-button-update">gimp_toggle_button_update ()</title> <programlisting>void gimp_toggle_button_update (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> Note that this function calls <link linkend="gimp-toggle-button-sensitive-update">gimp_toggle_button_sensitive_update</link>().</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>widget</parameter> :</entry> <entry> A <link linkend="GtkToggleButton">GtkToggleButton</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gint">gint</link> variable which will store the value of <link linkend="gtk-toggle-button-get-active">gtk_toggle_button_get_active</link>(). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-radio-button-update">gimp_radio_button_update ()</title> <programlisting>void gimp_radio_button_update (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> Note that this function calls <link linkend="gimp-toggle-button-sensitive-update">gimp_toggle_button_sensitive_update</link>().</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>widget</parameter> :</entry> <entry> A <link linkend="GtkRadioButton">GtkRadioButton</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gint">gint</link> variable which will store the value of GPOINTER_TO_INT (<link linkend="gtk-object-get-user-data">gtk_object_get_user_data</link>()). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-menu-item-update">gimp_menu_item_update ()</title> <programlisting>void gimp_menu_item_update (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>widget</parameter> :</entry> <entry> A <link linkend="GtkMenuItem">GtkMenuItem</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gint">gint</link> variable which will store the value of GPOINTER_TO_INT (<link linkend="gtk-object-get-user-data">gtk_object_get_user_data</link>()). </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-int-adjustment-update">gimp_int_adjustment_update ()</title> <programlisting>void gimp_int_adjustment_update (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> Note that the <link linkend="GtkAdjustment">GtkAdjustment</link>'s value (which is a <link linkend="gfloat">gfloat</link>) will be rounded with <link linkend="RINT-CAPS">RINT</link>().</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> A <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gint">gint</link> variable which will store the <parameter>adjustment</parameter>'s value. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-uint-adjustment-update">gimp_uint_adjustment_update ()</title> <programlisting>void gimp_uint_adjustment_update (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> Note that the <link linkend="GtkAdjustment">GtkAdjustment</link>'s value (which is a <link linkend="gfloat">gfloat</link>) will be rounded with (<link linkend="guint">guint</link>) (value + 0.5).</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> A <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="guint">guint</link> variable which will store the <parameter>adjustment</parameter>'s value. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-float-adjustment-update">gimp_float_adjustment_update ()</title> <programlisting>void gimp_float_adjustment_update (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> A <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gfloat">gfloat</link> varaiable which willl store the <parameter>adjustment</parameter>'s value. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-double-adjustment-update">gimp_double_adjustment_update ()</title> <programlisting>void gimp_double_adjustment_update (<link linkend="GtkAdjustment">GtkAdjustment</link> *adjustment, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> </para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>adjustment</parameter> :</entry> <entry> A <link linkend="GtkAdjustment">GtkAdjustment</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="gdouble">gdouble</link> variable which will store the <parameter>adjustment</parameter>'s value. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-unit-menu-update">gimp_unit_menu_update ()</title> <programlisting>void gimp_unit_menu_update (<link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gpointer">gpointer</link> data);</programlisting> <para> This callback can set the number of decimal digits of an arbitrary number of <link linkend="GtkSpinButton">GtkSpinButton</link>'s. To use this functionality, attach the spinbuttons as list of data pointers attached with <link linkend="gtk-object-set-data">gtk_object_set_data</link>() with the "set_digits" key. </para> <para> See <link linkend="gimp-toggle-button-sensitive-update">gimp_toggle_button_sensitive_update</link>() for a description of how to set up the list.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>widget</parameter> :</entry> <entry> A <link linkend="GimpUnitMenu">GimpUnitMenu</link>. </entry></row> <row><entry align="right"><parameter>data</parameter> :</entry> <entry> A pointer to a <link linkend="GimpUnit">GimpUnit</link> variable which will store the unit menu's value. </entry></row> </tbody></tgroup></informaltable></refsect2> <refsect2> <title><anchor id="gimp-table-attach-aligned">gimp_table_attach_aligned ()</title> <programlisting>void gimp_table_attach_aligned (<link linkend="GtkTable">GtkTable</link> *table, <link linkend="gint">gint</link> column, <link linkend="gint">gint</link> row, const <link linkend="gchar">gchar</link> *label_text, <link linkend="gfloat">gfloat</link> xalign, <link linkend="gfloat">gfloat</link> yalign, <link linkend="GtkWidget">GtkWidget</link> *widget, <link linkend="gint">gint</link> colspan, <link linkend="gboolean">gboolean</link> left_align);</programlisting> <para> Note that the <parameter>label_text</parameter> can be <link linkend="NULL-CAPS">NULL</link> and that the widget will be attached starting at (<parameter>column</parameter> + 1) in this case, too.</para> <para> </para><informaltable pgwide=1 frame="none" role="params"> <tgroup cols="2"> <colspec colwidth="2*"> <colspec colwidth="8*"> <tbody> <row><entry align="right"><parameter>table</parameter> :</entry> <entry> The <link linkend="GtkTable">GtkTable</link> the widgets will be attached to. </entry></row> <row><entry align="right"><parameter>column</parameter> :</entry> <entry> The column to start with. </entry></row> <row><entry align="right"><parameter>row</parameter> :</entry> <entry> The row to attach the eidgets. </entry></row> <row><entry align="right"><parameter>label_text</parameter> :</entry> <entry> The text for the <link linkend="GtkLabel">GtkLabel</link> which will be attached left of the widget. </entry></row> <row><entry align="right"><parameter>xalign</parameter> :</entry> <entry> The horizontal alignment of the <link linkend="GtkLabel">GtkLabel</link>. </entry></row> <row><entry align="right"><parameter>yalign</parameter> :</entry> <entry> The vertival alignment of the <link linkend="GtkLabel">GtkLabel</link>. </entry></row> <row><entry align="right"><parameter>widget</parameter> :</entry> <entry> The <link linkend="GtkWidget">GtkWidget</link> to attach right of the label. </entry></row> <row><entry align="right"><parameter>colspan</parameter> :</entry> <entry> The number of columns the widget will use. </entry></row> <row><entry align="right"><parameter>left_align</parameter> :</entry> <entry> <link linkend="TRUE-CAPS">TRUE</link> if the widget should be left-aligned. </entry></row> </tbody></tgroup></informaltable></refsect2> </refsect1> </refentry>